<?php
define("APP_PATH",dirname(__FILE__));
define("INCLUDE_PATH",APP_PATH."/include/");
define("SP_PATH",APP_PATH."/SpeedPHP");
require(INCLUDE_PATH."path.inc.php");
require(INCLUDE_PATH."memcache.inc.php");
require(INCLUDE_PATH."lang.inc.php");

// 错误提示汇总
require(INCLUDE_PATH."Message.php");

// config , maybe should be modified
define("TIMEZONE", "PRC");
$spConfig = array(
	"db" => array(
		'host' => '127.0.0.1',
		'login' => 'root',
		'password' => '123456',
		'database' => 'share',
		'prefix' => '',
	),
	'view' => array(
		'enabled' => TRUE, // 开启视图
		'config' =>array(
			'template_dir' => APP_PATH.'/tpl', // 模板目录
			'compile_dir' => APP_PATH.'/tmp', // 编译目录
			'cache_dir' => APP_PATH.'/tmp', // 缓存目录
			'left_delimiter' => '<{',  // smarty左限定符
			'right_delimiter' => '}>', // smarty右限定符
		)
	),
	'lang' => array("zh_CN"=>gettext, "en_US"=>gettext)
);
require(SP_PATH."/SpeedPHP.php");
?>
